package org.zhaozhen.pet.service;


import org.zhaozhen.basic.service.IBaseService;
import org.zhaozhen.basic.util.PageList;
import org.zhaozhen.pet.domain.Pet;
import org.zhaozhen.pet.domain.SearchMasterMsg;
import org.zhaozhen.pet.query.PetQuery;
import org.zhaozhen.pet.query.SearchMasterMsgQuery;
import org.zhaozhen.user.domain.Logininfo;

import java.util.List;

public interface IPetService extends IBaseService<Pet> {

    @Override
    void add(Pet pet);

    /**
     * 设置宠物上架
     * @param ids
     */
    void onsale(List<Long> ids);

    /**
     * 设置宠物下架
     * @param ids
     */
    void offsale(List<Long> ids);

    /**
     * 前端宠物详细页面查询宠物信息
     * @param id
     * @return
     */
    Pet loadById(Long id);


    PageList<Pet> queryPage2(PetQuery query, Logininfo currentLogin);

}
